package com.liuwei;


import com.liuwei.proxy.ProxyFactory;


public class Consumer {
    public static void main(String[] args) {
        // 生成代理对象
        HelloService helloService = ProxyFactory.getProxy(HelloService.class);
        // 代理对象调用invoke方法
        String result = helloService.sayHello("刘威123123");
        System.out.println(result);
    }
}
